Vector Shape Structure
The vector shape structure, of data typegxVectorShapeDataRec
, is used with theGXVectorVectorizeShape
message, which is described on page 4-130.
struct gxVectorShapeDataRec { gxVectorShapeOptions shapeOptions; long maxPolyPoints; Fixed shapeError; Fixed textSize; Fixed frameSize; }; typedef struct gxVectorShapeDataRec gxVectorShapeDataRec;
Field Description
shapeOptions
- Options that you can include for rendering shapes into vectors. This value is the combined value of the constants that you include from the vector shape options enumeration, which is described in the next section.
maxPolyPoints
- The maximum number of points that a polygon can contain for drawing on this device. If the value of this field is 0, QuickDraw GX converts polygons into vectors rather than sending polygons to the device.
shapeError
- The maximum number of pixels by which the vectors created to approximate a curve can deviate from the original. The smaller this value, the more vectors are used to approximate each curve, which means more memory, but less deviation in shape. A value of
0x00002000
is typically used, which allows an error of no more than one 1/8 of a pixel at 72 dots per inch.textSize
- Any text above this size is filled, while any text below this size is outlined but not filled.
frameSize
- Any shapes with frames larger than this size are filled, while shapes with any shapes with frames smaller than this size are stroked.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help